package com.rgs.module.file.filter;

import com.rgs.base.database.sql.ISqlFilter;
import com.rgs.base.database.sql.SqlFilterAnnotation;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author Ren Gaoshuai
 * @ClassName FileInfoFilter
 * @date 2022-01-26 8:53
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FileInfoFilterDTO implements ISqlFilter {
    @SqlFilterAnnotation(columnName = "fileName")
    private String fileName;
    /**
     * 文件大小，字节
     */
    @SqlFilterAnnotation(columnName = "size")
    private Long size;
    /**
     * 创建时间
     */
    @SqlFilterAnnotation(columnName = "createTime")
    private LocalDateTime createTime;
    /**
     * 状态，0：待删除；1：不删除
     */
    @SqlFilterAnnotation(columnName = "status")
    private Integer status;
    /**
     * crc32
     */
    @SqlFilterAnnotation(columnName = "crc32")
    private Long crc32;

    private String orderByClause;
}
